package org.csu.goodpartner.service;

import org.csu.goodpartner.VO.ShopVO;
import org.csu.goodpartner.common.CommonResponse;
import org.csu.goodpartner.entity.Class;
import org.csu.goodpartner.entity.Shop;

import java.math.BigDecimal;
import java.util.List;

public interface ShopService {
    //注册店铺
    public CommonResponse<Shop> openShop(int id,
                                         String email,
                                         String addr,
                                         String IDCard,
                                         String license,
                                         String name);
    //修改分类
    public CommonResponse<Class> updateClass(int shopid, int id, String classone, String classtwo);
    //新增分类
    public CommonResponse<Class> addClass(int shopid,String classone,String classtwo);
    //删除分类
    public CommonResponse<Class> deleteClass(int shopid, int id);
    //展示所有店铺
    public CommonResponse<List<Shop>> allShop(int ownerid);
    //修改店铺表相关信息
    public CommonResponse<Shop> updateShop(int shopid,String name);
    //根据店铺id获取
    public CommonResponse<Shop> oneShop(int shopid);
    //查看所有分类
    public CommonResponse<List<Class>> allClass(int shopid);
    //根据分类id查找分类
    public CommonResponse<Class> oneClass(int id);


    //关闭店铺
    public CommonResponse deleteShop(int shopid);
}
